<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<security:authorize ifAllGranted="ROLE_USER">

<div id="heading" class="section">
	<h2>Resultado del reporte</h2>
</div>

<div id="hotelResults" class="section">

    <form:form action="finalizaAmigos" method="post">
       
        
 <div class="field">

     <div class="field">
                <div class="label">Discoteca:</div>
                <div class="input">${lista.codigoDiscoteca.nombre}</div>
         </div><br/>
         <div class="field">
                <div class="label">Fecha</div>
                <div class="input">${lista.fecha2}</div>
         </div><br/>
         
    <c:if test="${not empty lcontactos}">
	<table class="summary">
		<thead>
			<tr>
                <th>Codigo</th>
                <th>Nombre</th>
                <th>Email</th>
                <th>Foto</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="contacto" items="${lcontactos}">
				<tr>
					<td>${contacto.codigo}</td>
					<td>${contacto.nombre}&nbsp;${contacto.apellido}</td>
                    <td>${contacto.correo}</td>
					<td> <c:if test="${not empty contacto.foto}">
                         <img src="${contacto.foto}" alt="${contacto.nombre}" border="0"/>
                         </c:if>
                    </td>
				</tr>
			</c:forEach>
			
		</tbody>
	</table>
	
    </c:if>
     </div>
        &nbsp;<br/>
        &nbsp;<br/>
	<div class="buttonGroup">
            <input type="submit" name="submitform" value="Finalizar"/>
	</div>
        </form:form>
</div>	

</security:authorize>